<script type="text/javascript" src="<?=base_url();?>java_scripts/vote_scripts.js"></script>
	<h3 class="capture">Vote Management</h3>
    <div id="wrap">
    
    <div id="tdd_selected">
    	<div class="dd_selected">Voting Item Categories</div>
        <div class="dd_view">
        <form action="" method="post"><br />
   			<table width="600" border="0" align="center" cellpadding="0" cellspacing="0" class="userview">
      			<tr align="center">
      				<th width="15%" height="25">No</th>
      				<th width="70%" align="left">Description</th>
      				<th width="15%" style="border-right: 1px solid #006295";>Remove</th>
      			</tr>
      			<?php 
      				$color='#DFDFDF';
      				$i=0;
      				foreach($categories->result_array() as $category){
      				$i+=1;	
      				$color=($color=='#DFDFDF')?'#EFEFEF':'#DFDFDF';
      			?>
      			<tr align="center" bgcolor="<?=$color?>">
      				<td width="15%" height="25" style="border-left: 1px solid #006295;"><?=$i;?></td>
      				<td width="70%" align="left"><a href="<?=site_url("vote_management/updateCategoryForm/".$category['vote_item_cat_id'])?>"><?=htmlspecialchars($category['vote_item_cat_desc']);?></a></td>
      				<td width="15%" style="border-right: 1px solid #006295";><img width="15" height="15" onclick="javascript:deleteCategory('<?=site_url("vote_management/deleteCategory/".$category["vote_item_cat_id"])?>');"  src="<?=base_url()?>images/recyclebin.png"></td>
      			</tr>
      			<?php 
      				}
      			?>
      			<tr>
      				<td colspan="3" style="border-top:1px solid #006295;">&nbsp;</td>
      			</tr>
      			<tr>
      				<td align="left" colspan="3"><input onclick="javascript:window.location='<?=site_url("misc/homepage")?>'" type="button" class="button_back_end" value="Back"/>&nbsp;&nbsp;<input type="button" class="button_back_end" onclick="javascript:window.location='<?=site_url('vote_management/addNewCategoryForm')?>'" style="cursor: pointer;" value="Add New"/></td>
      			</tr>
      		</table>
        	
        </form>
		</div>
        
    </div> 

</div>